import VueRouTer from 'vue-router'
import Vue from 'vue'
import home from '@/eventbus/home.vue'
import cation from '@/eventbus/cation.vue'
import my from '@/eventbus/my.vue'
import order from '@/eventbus/order.vue'


import catin from '@/eventbus/Song/cain.vue'
import hon from '@/eventbus/Song/hon.vue'
import myy from '@/eventbus/Song/myy.vue'
import orde from '@/eventbus/Song/orde.vue'

import cat from '@/eventbus/Song/sun/cai.vue'
import ho from '@/eventbus/Song/sun/ho.vue'
import mm from '@/eventbus/Song/sun/mm.vue'
import ord from '@/eventbus/Song/sun/ord.vue'

Vue.use(VueRouTer)
const router = [
    {
        path:'/',
        redirect: '/home'
    },
    {
        path:'/home',
        component:home,
        redirect:'/home/catin',
        children:[
            {
                path:'catin',
                component:catin,
                redirect:'/home/catin/ho',
                children:[
                    {
                        path:'cat',
                        component:cat
                    },
                    {
                        path:'ho',
                        component:ho
                    },
                    {
                        path:'mm',
                        component:mm
                    },
                    {
                        path:'ord',
                        component:ord
                    },
                ]
            },
            {
                path:'hon',
                component:hon,
               
            },
            {
                path:'myy',
                component:myy
            },
            {
                path:'orde',
                component:orde
            },
        ]
    },
    {
        path:'/cation',
        component:cation
    },
    {
        path:'/my',
        component:my
    },
    {
        path:'/order',
        component:order
    },
]
const routes = new VueRouTer({
    routes:router,
})
// routes.beforeEach((to,from,next)=>{
   
// })
export default routes